package com.kh.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kh.reggie.dto.DishDto;
import com.kh.reggie.entity.Dish;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface DishService extends IService<Dish> {
    //新增菜品同时插入对应口味，Dish，dishflavor
    public void saveWithFlavor(DishDto dishDto);
//    根据id查询菜品和口味信息
    public DishDto getByIdWithFlavor(Long id);
//    修改菜品和口味
    public void updateWithFlavor(DishDto dishDto);

    void removeWithFlavor(@RequestParam List<Long> ids);
}
